package com.qxl.forest.business.persistence.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author: qiuxinlin
 * @Dercription: 角色和菜单关联表
 * @Date: 13:54 2017/11/24
 */
@Entity
@Table(name = "f_relation")
public class Relation implements Serializable {
    private static final long serialVersionUID = 3703719261988344909L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue
    private Integer id;
    /**
     * 菜单id
     */
    private Integer menuid;
    /**
     * 角色id
     */
    private Integer roleid;

    public Integer getMenuid() {
        return menuid;
    }

    public void setMenuid(Integer menuid) {
        this.menuid = menuid;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }
}
